package org.jeecg.modules.pos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("pos_order_team")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="pos_order_team对象", description="pos_order_team")
public class PosOrderTeam implements Serializable {
    private static final long serialVersionUID = 1L;

    /**key*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "key")
    private String id;

    @Excel(name = "序号", width = 15)
    @ApiModelProperty(value = "序号")
    private Integer sortIndex;

    /**是否删除*/
    @Excel(name = "是否删除", width = 15)
    @ApiModelProperty(value = "是否删除")
    private Boolean isDelete;
    /**主订单id*/
    @Excel(name = "主订单id", width = 15)
    @ApiModelProperty(value = "主订单id")
    private String orderId;
    /**酒店id*/
    @Excel(name = "酒店id", width = 15)
    @ApiModelProperty(value = "酒店id")
    private String hotelId;
    /**创建时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;


}
